package com.autonavi.collapse.task.model;

public class TaskContext {

    private TaskConfig taskConfig;
    private ExtendedMap contextParameters = new ExtendedMap();

    public TaskContext(TaskConfig taskConfig) {
        this.taskConfig = taskConfig;
    }

    public TaskConfig getTaskConfig() {
        return taskConfig;
    }

    public void setTaskConfig(TaskConfig taskConfig) {
        this.taskConfig = taskConfig;
    }

    public ExtendedMap getContextParameters() {
        return contextParameters;
    }

    public void setContextParameters(String key, Object value) {
        if (value != null) {
            contextParameters.setValue(key, value);
        }
    }
}
